/* 
 * Copyright [2018] [Alex/libo(liboms@hotmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.shell.model;

/** 
 * @title ResultDomain.java  
 * @package com.hyts.shell.model  
 * @description TODO  
 * @see TODO
 * @author libo/Alex
 * @email liboms@hotmail.com/liboware@163.com  
 * @date 2018年5月17日 
 * @version V1.0 
 */
public abstract class ResultDomain <R>{

	/**  
	 * <p>是否成功返回</p> 
	 * @fieldName isSuccess
	 * @fieldType boolean
	 */ 
	private boolean isSuccess;
	
	/**  
	 * <p>结果对象信息</p> 
	 * @fieldName resultSubject
	 * @fieldType R
	 */ 
	private R resultSubject;
	
	/**  
	 * <p>{字段的描述}</p> 
	 * @fieldName resultError
	 * @fieldType R
	 */ 
	private R resultError;
	
	/**  
	 * <p>{字段的描述}</p> 
	 * @fieldName exitStatus
	 * @fieldType Integer
	 */ 
	private Integer exitStatus;

	/**  
	 * @name isSuccess's getter method
	 * @param none
	 * @return isSuccess
	 */
	public boolean isSuccess() {
		return isSuccess;
	}

	/**  
	 * @name isSuccess's setter method
	 * @param isSuccess
	 * @return void
	 */
	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	/**  
	 * @name resultSubject's getter method
	 * @param none
	 * @return resultSubject
	 */
	public R getResultSubject() {
		return resultSubject;
	}

	/**  
	 * @name resultSubject's setter method
	 * @param resultSubject
	 * @return void
	 */
	public void setResultSubject(R resultSubject) {
		this.resultSubject = resultSubject;
	}

	/**  
	 * @name exitStatus's getter method
	 * @param none
	 * @return exitStatus
	 */
	public Integer getExitStatus() {
		return exitStatus;
	}

	/**  
	 * @name exitStatus's setter method
	 * @param exitStatus
	 * @return void
	 */
	public void setExitStatus(Integer exitStatus) {
		this.exitStatus = exitStatus;
	}

	/**  
	 * @constructor：ResultDomain    
	 */ 
	public ResultDomain() {
		super();
	}

	/**  
	 * @name resultError's getter method
	 * @param none
	 * @return resultError
	 */
	public R getResultError() {
		return resultError;
	}

	/**  
	 * @name resultError's setter method
	 * @param resultError
	 * @return void
	 */
	public void setResultError(R resultError) {
		this.resultError = resultError;
	}
	
	
	
}
